#include "valTree.h"

int main() {
    AVLTree *tree = createTree();
    Element data[] = {10, 20, 30, 40,
                      50, 60, 68, 80,
                      25, 7, 55};
    for(int i = 0; i < sizeof (data)/ sizeof (data[0]);i++) {
        insertAVLTree(tree,data[i]);
    }
    printf("inorder: ");
    inOrderAVLTree(tree);
    printf("the height %d\n", heightAVLNode(tree->root));
    printf("======================\n");
    deleteAVLTree(tree, 40);
    deleteAVLTree(tree, 25);
    printf("inOrder: ");
    inOrderAVLTree(tree);
    releaseTree(tree);
    return 0;
}